package com.siyoumi.util;

//字符串工具类
public class XSqlStr {
    static public String LIMIT_1 = "LIMIT 1";
    static public String FOR_UPDATE = "FOR UPDATE";

    static public String limitX(Integer x) {
        return limitX(x, 0);
    }

    static public String limitX(Integer x, Integer offset) {
        return XStr.concat("LIMIT " + x, " OFFSET " + offset);
    }
}
